package ch6;

import java.io.*;

import ch3.Student;

public class FanXuliehua {

	public static void main(String[] args) {
		// 反序列化
		try {
			ObjectInputStream oin = new ObjectInputStream(new FileInputStream("obj.txt"));
			Student s = (Student) oin.readObject();

			oin.close();
			System.out.println("学生信息：");
			System.out.println(s);
		} catch (Exception e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
	}

}
